/*前台布局容器*/
.layout-container {
    display: flex;
    justify-content: center; /* 居中内容 */
    background-color: rgb(242, 243, 245);
    z-index: 1;
    /* 绘制网格背景 */
    /*background-image: linear-gradient(rgba(0, 0, 0, 0.03) 0.5px, transparent 1px),*/
    /*linear-gradient(90deg, rgba(0, 0, 0, 0.03) 0.5px, transparent 1px);*/
    /*background-size: 20px 20px; !* 设置网格间距 *!*/
}

/*后台布局容器*/
.admin-layout-container {
    position: fixed;
    top: 0;
    width: 95%;
    height: 100vh;
}

.admin-left-sidebar {
    padding-top: 75px;
    padding-left: 25px;
    background-color: #2d3339;
    height: 100vh;
}

.layout-content-container {
    max-width: 1200px; /* 固定最大宽度 */
    width: 100%; /* 默认宽度100%，配合max-width使内容自适应 */
    margin-top: 5px;
    border-radius: 10px;
    z-index: 2;
}


/* 头部样式 */
.header-container {
    position: fixed;
    top: 0;
    left: 0;
    margin: 0 0;
    z-index: 99;
    width: 100%; /* 默认宽度100%，配合max-width使内容自适应 */
    background-color: white;
    /*box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);*/
}

.header-wrapper {
    max-width: 1390px;
    height: 60px;
    top: 0;
    display: flex;
    justify-content: center; /* 水平居中 */
    align-items: center; /* 垂直居中 */
    margin: auto;
    background-color: white;
}


.header-left {
    /* 鼠标样式 */
    cursor: pointer;
    display: flex;
    align-items: center;
}

.header-logo {
    height: 40px;
    width: 40px;
    margin-right: 15px;
}

.header-title {
    font-size: 18px;
    margin: 0;
}

.header-center {
    flex: 1;
    padding-left: 100px;
}

.header-subtitle {
    font-size: 16px;
    color: #666;
    margin: 0;
    text-overflow: ellipsis;
    display: inline-block; /* 内联块元素，便于动画 */
    white-space: nowrap; /* 防止换行 */
    overflow: hidden;
    border-right: 2px solid #666; /* 打字效果光标 */
    animation: typing 2.5s steps(20, end), blink-caret 0.85s step-end infinite; /* 打字机动画 */
    animation-fill-mode: forwards; /* 动画完成后保持最终状态 */
}
.search-dialog-class{
    width: 500px;
    top: 5vh;
    max-width: 90%;
}
/* 打字机效果 */
@keyframes typing {
    from {
        width: 0;
    }
    to {
        width: 288px;
    }
}

/* 光标闪烁效果 */
@keyframes blink-caret {
    from,
    to {
        border-color: transparent;
    }
    60% {
        border-color: #666;
    }
}

.main-content {
    border: 1px solid #e0e0e0; /* 为区块分隔增加边框 */
    border-radius: 10px;
}

.right-sidebar-top {
    position: sticky;
    top: 65px;

    background-color: #fff;
    margin-top: 10px;
    text-align: center;
    padding: 10px;
    border: 1px solid #e0e0e0; /* 为区块分隔增加边框 */
    border-radius: 10px;
}

.right-sidebar-dynamic {
    margin: 10px auto;
    padding: 0 10px;
    position: sticky;
    top: 320px;
    background-color: #fff;
    border: 1px solid #e0e0e0; /* 添加边框进行块区分 */
    border-radius: 10px;
}

.right-sidebar-top h4 {
    font-size: 16px;
    margin: 0;
}

.qr-code {
    width: 90%;
}

.left-sidebar-dynamic {
    margin: 10px auto;
    padding: 10px 10px;
    position: sticky;
    top: 65px;
    border-radius: 10px;
}



.advertising-class {
    background-color: #fff;
    text-align: center;
    border-radius: 10px;
}

.advertising-class h4 {
    font-size: 14px;
    margin: 10px auto;
}
.advertising-class img{
    cursor: pointer;
}
.advertising-class p {
    font-size: 13px;
    padding: 0;
    font-weight: lighter;
}

.footer-container {
    width: 100%;
    background-color: #f5f5f5;
    height: 30px; /* 固定高度 */
    justify-content: center; /* 内容水平居中 */
    align-items: center;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1); /* 底部阴影 */
    text-align: center;
    font-size: 13px;
    color: #666;
}

.admin-footer {
    position: fixed;
    bottom: 0;
}

.footer-container a {
    color: #666;
    text-decoration: none;
}

.footer-container a:hover {
    color: #007bff; /* 鼠标悬停时的颜色 */
}

.dialog-footer {
    padding: 20px 0 10px;
}


.header-right {
    display: flex;
    align-items: center;
}

.right-item {
    margin-left: 20px;
}
.login-dialog-class{
    width: 500px;
    top: 5vh;
    max-width: 90%;
}

.user-avatar {
    align-items: center; /* 使用align-items代替align-content，因为align-content用于多行弹性盒模型 */
    justify-content: center;
    text-align: center;
    background-color: white;
    color: #ff8721;
    border: solid #ff8721 1px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    font-size: 11px;
    display: flex; /* 添加display: flex，使align-items和justify-content生效 */
    padding: 5px; /* 添加padding，使文本距离边框有固定距离，可根据实际需求调整 */
    box-sizing: border-box; /* 添加box-sizing: border-box，使padding包含在width和height内 */
    font-weight: bold; /* 添加font-weight: bold，使文字加粗 */
}
.search-input {
    height: 40px;
    font-size: 18px;
}

.search-result {
    margin-top: 10px;
    padding-left: 10px;
    cursor: pointer;
    font-size: 16px;
}

.search-result:hover {
    color: #ff8721;
}

/* 手机端导航栏样式 */
.mobile-nav {
    margin-left: auto;
}

.mobile-nav-button {
    border: none;
}
/* 响应式调整 */
@media (max-width: 998px) {
    .header-center {
        display: none;
    }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header-wrapper {
        max-width: 85%;
        height: 55px;
        top: 0;
        display: flex;
        justify-content: center; /* 水平居中 */
        align-items: center; /* 垂直居中 */
        margin: auto;
        background-color: white;
    }
    .header-title {
        font-size: 12px;
        margin: 0;
    }


    .header-center {
        display: none;
    }

    .user-nickname {
        display: none;
    }

    .page-content {
        box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
        border-radius: 10px;
    }
}

/* 响应式调整 */
@media (max-height: 879px) {
    .right-sidebar-top {
        position: relative;
        top: 0;
    }

    .right-sidebar-dynamic {
        position: sticky;
        top: 65px;
    }

}


.page-content {
    padding-top: 65px;
    box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.2);
}

.base-color {
    color: #ff8721;
}

.home-el-col {
    cursor: pointer;
}
